<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<SCRIPT LANGUAGE="JavaScript">  
<!--  
  function contactlist(jsons){  
  var table=document.getElementById("contactTable");//获得html中Table  
  var arr = eval(jsons);//将jsons字符串转换为json对象数组  
  for(var i=0;i < arr.length;i++){  
    var jsonObj = arr[i];  
    var tr = table.insertRow(table.rows.length);//添加tr  
    var td1 = tr.insertCell(0);//td  
    var td2 = tr.insertCell(1);  
    td2.align = "center";  
    var td3 = tr.insertCell(2);  
  
    td1.innerHTML = jsonObj.id;//设置每列对应的值  
    td2.innerHTML = jsonObj.name;  
    td3.innerHTML = jsonObj.phone;  
    }  
  }  
  
  //-->  
</SCRIPT>  
</head>
<BODY onload="javascript:myjavascript.show()">  
   <table width="100%" border="0" cellspacing="0" id="contactTable">  
    <tr>  
      <td width="20%">编号</td>  
      <td width="center">姓名</td>  
      <td width="30%">电话</td>  
    </tr>  
   </table>  
 </BODY>  
</html>